package com.he.architecture.service;

import com.he.architecture.common.service.LogicService;
import com.he.architecture.dao.CustomerOrderDao;
import com.he.architecture.dao.LineItemDao;
import com.he.architecture.entity.LineItem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class LineItemService extends LogicService<LineItemDao, LineItem,Long> {
    /**
     * 默认构造器
     */
    public LineItemService(@Autowired LineItemDao cd) {
        super(cd);
    }

    public List<LineItem> getLineItemsByCustomerOrderId(Long id){
        return getDAO().getLineItemsByCustomerOrderId(id);
    }
}
